package com.ysd.lis.entity.iqc;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("LimsIQCResults")
public class LimsIQCResults {
    private static final long serialVersionUID = 1L;
    @TableField("Id")
    private String id;

    @TableField(exist = false)
    private String instrCode;

    @TableField("BatchNumber")
    private String batchNumber;

    @TableField(exist = false)
    private String horizontal;

    @TableField(exist = false)
    private String itemNo;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    @TableField("QCDate")
    private Timestamp qcDate;

    @TableField("QCSequence")
    private Integer qcSequence;

    @TableField("NumResult")
    private Double numResult;
    @TableField("Result")
    private String result;
    @TableField("Mean")
    private Double mean;
    @TableField("SD")
    private Double sd;
    @TableField("Z")
    private Double z;
    @TableField("IsAlarm")
    private Boolean isAlarm;
    @TableField("AlarmRules")
    private String alarmRules;
    @TableField("IsOutControl")
    private Boolean isOutControl;
    @TableField("OutControlRules")
    private String outControlRules;
    @TableField("IsOutControlHandled")
    private Boolean isOutControlHandled;
    @TableField("IsBestInDay")
    private Boolean isBestInDay;

    @TableField("IsDeleted")
    private Integer isDeleted;

    @TableField("InsId")
    private String insId;
    @TableField("AnsId")
    private String ansId;

    @TableField("IQCMedicineDecisionLevelId")
    private String iQCMedicineDecisionLevelId;

    @TableField("IQCMaterialId")
    private String iQCMaterialId;


    @TableField("IQCMaterialBatchId")
    private String iQCMaterialBatchId;

    @TableField("InsAnsId")
    private String insAnsId;



}
